<template>
<div class="">
    <input type="text" v-model.number="count">
    <h1>{{ count }}</h1>
    <button @click="showMsg">查看</button>
</div>
</template>

<script setup>
import { ref } from 'vue';
const count = ref(0)
const showMsg = () =>{
    console.log(count.value,typeof count.value);
}
</script>

<style scoped></style>
